package com.qyzmt.mapper;

import com.qyzmt.pojo.Volunteer;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface VolunteerMapper {

    @Select("select * from volunteers")
    List<Volunteer> list();

    @Insert("insert into volunteers(name,profession,connect_email,connect_phone,register_date) values(#{name},#{profession},#{connect_email},#{connect_phone},#{register_date})")
    void add(Volunteer volunteer);
}
